package org.tech4j.captcha.graphical.factory;

import org.tech4j.captcha.graphical.builder.GraphicalCaptchaEntityBuilder;
import org.tech4j.common.spi.ExtensionLoader;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/5 15:31
 **/
public class GraphicalCaptchaEntityBuilderFactory {

    private GraphicalCaptchaEntityBuilderFactory() {

    }

    /**
     * new instance
     * @param name name
     * @return GraphicalCaptchaEntityBuilder
     */
    public static GraphicalCaptchaEntityBuilder newInstance(String name) {
        return ExtensionLoader.getExtensionLoader(GraphicalCaptchaEntityBuilder.class).getJoin(name);
    }
}
